﻿using System;
using Model.ModelClasses;

namespace Data
{
    public abstract class AbstractMappingClass : IMappingClass
    {
        protected AbstractModel _pureModel;

        public virtual AbstractModel PureModel
        {
            get { return _pureModel; }
            set { throw new NotImplementedException(); }
        }

        public event EventHandler UpdateDataEvent;

        protected void UpdateData()
        {
            if (UpdateDataEvent != null)
                UpdateDataEvent(this, new EventArgs());
        }
    }
}
